update code for shop setting