added automatic partition