removing end