be more strict in checkRep