handle memory out