adding clean 1000 helper function