prepare for partial eval fun