ran simulation and made it work