added 2nd interation of needle moving