pulling unique pins for lot calculation