update typo, final and indent