adding array decoding