improved text length maintainance