zero-fill-on-demand algorithm