move cam into preDraw function