remove part at end