removed unnecessary global reference