modify a bit in pin.php