fixed semantic issue in keyGenerator + formatting