environment is now static, made the code more efficient