add a new function to test create code

add a new function to test create code