adding move logic