removed unhelpful memory management optimizations