moved partition before sanity checks