somehow simulation.h screwed up