fix delimiter and update original implementation