update pins and range