wrote CleanPublish.m