support validity check