small performance tweak