rename pviate func