avoid redundant pattern matching