removed temp file to prevent overwrite
fixed formatting