started on check_kij()