move end of block in correctly