added some ing pattern match cases