made a little performance tweak