add environment attribute