Somehow working, but need to dict to array issue