fixing the pins controller