changes type of event