N-length solution for html reader works