cleaned up charlie projection code