wrote program checking