improved different_target conditions