remove redundant grep