function for read IBI data