working version of the checker