fixed a bug in partition filling
tweaked little things