del-each had completly buggy implementation