refactoring step 2
remove warning