change replace to create since it's more broadly useful