small code simplification