added pattern keyword