rewrote changes to the checker