Redefining pin within vanilla for loop