put grep in right place