implemented matches for all stages