cross validating labels and components