added number of inputs