new legend fixes #9