passing end position to loser