use error method when read fails