refactor dragmove function