gi: reduce needless method calls