waiting_data signal is synchronized at the start and end