modify pin init order