changes to pin controler