update setup method