changed wrong function call in index