handle illegal id