with graph legends modified