updated display function

changed to a vector of vectors and updated the display function