blog code cleanup