changed partition map to array of integers