correct partition generator