added simulate logic, fixed feed_forward