add syntax sugar for assigning event data