this should do it for the move loop I needed. untested solution
morning code
d