now can send multiple inputs