added memory warning