function for VHlep