fixed some code, it now simulates well