displays elems using traversal and .map