add code to display intersection as well as union