fixed formatting for readability
refactoring