trash all function