fixing the size for the legend addition