not using temp file