setup function

setup function