function was broken because of typo