restructured project and add loser tree