removed writing of temp file