current working version, fixed pins