adding read_data for bars interval