removing 'end'