env must be in body of function