try to add legend but not finished