finished null distrib script