memory preallocation for variables in moveVel command