chop unneeded environment element