create function to add project data to event data