adding capability to zero out pins as necessary