simplifying the checker