removed unused memory reference