Edit create distribution to variable instead of value