for mixed data