more explitic algorithm for delimiter