improved text orientation