Xiaomi beats samsung and apple