Updated assignment of env method