added parameter to moveArrow