fixing pin numbers