modified variable acquisition to fix text display errors