attempt to resolve memory leak issue