review comments - handles var length array also