remove memory leaking call