changed grep to egrep