refactored code- added/deted blank lines