support for multiple inputs
support for multiple inputs