newer version of projection code