detect extra terms following valid declarations