check params