spinning works
simulator works with Gabes refactored code