addition of multisampling class