finding out why events are doubled