made it work reactively