text snippet and resize array snippet added