modified createEnvData