added patterns to hex wrapper