a small optimization