reading and some small changes