add function to get custom field from project