fixed indentation
refactoring