use inputs too