display function made const