checking environment