Revert "gre fix"

This reverts commit c9c0c72724e8964fb31585824c0583de01c83ab0.
grep fix