changes to pins controller