distribute inputs, almost works