added a typedef to beautify the environment code