cleaning up the serial layer