make setup function