coded computedEnv to store intermediate results