added pragma to updatepositiontextrix