updated for disk processing