moved temp declaration to make global variable, unknown changes in comms