flatness is now estimated in a better way