rm legend when rm-ing class info