added 3 more patterns and corrected some issues