updated to grep_read