output (-1,-1) only for ending a match