remove nth to the last element