partition handling