speeds up gexpr method (issue #16)