changed textformat to private var so assign would be retained during initialize()