memory used fix