changed reaction method. Now move to event based