added autmatic precise end stepping