event attributes with functions.