Change to pins index