remove events and add newline between functions