using list for inputs