making dirichlet drawing more intelligent