additions to cleaning functions