added vrt function