new place for a calculation of size a memory