making arrow change direction