fix read method