correct typo, clean up code so that it runs all