sending data in loop