add a check functions