environment code