added all cases in partition