legend functionality added