updated move2Location function