start: free unnecessary memory