minor edits, 'pin shift' wasn't defined properly