refactoring the code to improve and reduce lines