memory size adjust