prepare for mathch