patterns for command