change check logic