fixed the pin assignments