implemented atmospheric extinction