legend and title added