adding better simulateScara