Fixed output and function typo