updated code to work with the new pcb