refactoring warnings