changed readmode to read block