add function for str display for cons