code before change to display everything