correct  check for input in case of mixed sources