updated the environment class