added ordering to pins