make gfilter.R example compatible with latest GIT