changed findDirection