Revert "gre fix"

This reverts commit 0c3f7561707a47decb5106340166d3738b202517.
grep fix