grep method was at wrong level