fixfixed some memory stuff