test code simplify