work on the environment generator