add refit function