removal of globally declared variable