removed unnecessary global declaration