added events stuff
minor change