initial method updated with list of inputs