add save function in pvr class