modified pins controller and partial header as I didn't do earlier