improvements to resyllab heuristic