update location dict to array