implement a display method