updating refactorization