reformatted pins.c