stoped reader when it reaches end of text