fixing mem sizes