remove unused import warnings and unused variable warnings.