makes output of partFunc optional