match rest working