change legend to Legend