You might want to cut down on your feeding. Reason being that left over food may cause these "worms" to populate. According to my experience, these worms normally stay below soil and unless the soil is constantly disturb, it should not crawl all over the tank. Give mollies some time for them to eat the worms. Try not to feed your mollies.
Bookmarks