refactor to class Checker