Re-ordered inserts

Re-ordered inserts to satisfy constraints