another small optimization