uncommented serial code