refactored code to use getDest. Animation direction logic can be tweaked here