added onemore(longest) with bugs...