preparation before a match