added confirm for end match