removed unused memory