code refactoring: fixed indentation