typo: indexView variable returned in module instead of function call