added a new rule to check source and class entity