modify gettextonly method