added patterns and mixins