adjusted ordering of pins