do label conversion in a much less stupid way