replace meta refactoring