pgrm multiple pattern done