displays a pattern