add the read method