add rmvm functions