added how to determine read structure