modified 2D class to work as a 1D projection