added check arguments