Modified displayData method