dist table cleanup