added check argument method.