style changes and usage of 'as patterns'