added read to open