added ENVI functions