use first instead of grep