simplify read functions