remove dict->array function