quick code simplification