added simulation stuff