edit setup method