removed unneeded pattern match