added check functions