trying to get this id check right