fixing partitioning, initial linked almost working