use projFunc for 1D as well