setUp function