addressed comments, fixed create_env