code for the check project