another small code optimization