slight performance fix