made legend look nicer