introduce text leaf pattern