Formated code, fixed naming typo