remove extra spacing in the events