--add multi-input version