added title & legend; decided their relationships;