added functions

remove (last) and findNtoLast