add function for custom field