better solution for branch reading.