automating the input list