added label rotation, though not perfect