adding logic for move handling