added a gc() after evaluate objective