temporary workaround until we implement a better algorithm
fix typo