improved text positioning