added 2D to 3D wall converter function