added grep_check