stripped out check_ijk() for now