added onemore(longest) with bags...