end-and-begin