fixed last and butlast