add fn defined