added grade/serial loop