refactoring; limited maximum text blocks size