worked on memory management.