somehow second and second from last went wrong