made the environment wrapper a table