moved indentation out into it's own method