added legend to plotCI