implemented the serial pragma