added new condition to send_flag for check service