added support to show patterns