make replaceWithList public