simulation working, also comments