update patterns to respect numeric types