before partition