check ancestry and make list of inputs
only use lists for INPUT