rm only if needed