also check lengh of inputs.