changed design after feedback from Sara
enable expanding more than one pattern