changed pop and shift filters to proxies ruby calls see #2892

I get it ! You're absolutely right.

I've made a new PR #3130