handled a memory leaky thing