moved projcetion code into utl.