readAll method added