cleaning up the environment model