move isStatic to a local