fix redeclaration warning that is filling up the log