changes in structure of GeoLight.R file