change code stucture

Signed-off-by: yuanhuan <yuanhuan@tcl.com>