fixed one mistake in previous refactor and made more consistent for further refactoring
factored out the add_accent function