pins.c: cleaned up