added case for trivial array