cleaner up the pins controller