add checking required params