replace is size-aware