little optimization to make code more intuitive.