recalib render code