works for more than one move