added logic to move files