remove warning, duplicate import, and commented debug code