fixed typo
corrected some rules