check params length