changed the way display is done