testing code for serial loop