minor performance tweak