add sending start and end condition