fixing read len