map functions and deliver with cost