adding array functino doc