little code optimization