all mem leaks removed