dead lock at the end of the reading