removed memory leak