added patterns and inventory