fixed memory leak
small changes