changed to be compatible with struct

Fork of dataComm by Michael Ling