built code to update dist.