Revert "change the input parameter from struct to signle type."

This reverts commit f26b41b8e9a369fea1d94d0a23b823977e09e1cf.
change the input parameter from base type to struct.