added max limit for matches and grep command