added 3d plot