environment numbering and referencing