undid changes to serial code