prepare for calc