converted data array to associative