more code on pre calc