updated SDReader to simplify