get total of uids rows
fix merge