bug fix, remove unnecessary flat and update results