use category simplify code.