attempt to fix the memory issues