john fixed memory leak :D