logic for total cloud data