support multiple inputs