remove nth element from end