fix typo, add newlines for readability of code