adding array size API