added normalize_array snippet