refactored sample rules for table