changes display method to get rid of extra Array#map call