_s setup function update