bug fix in displayData