memory_usage limit added;