change check_prog()