fix syntax error in helper and indent properly