fixed wrong function name calling