Switching pins positions