made changes to pins controller