set up function in processor
https://app.asana.com/0/19128794071925/21140848412721