deleted unused a function and a static variable.