sending data at an interval of time