add warning on memory issue