print and legend fix