minor bugs and spellings