do not use a reference to globals