2d working with square values of procs