fix time limit; memory control