added updated metal for 2D case