change check function