getting rid of redundant copying, storing, erasing in update2D in preparation for update3D