fixed wrong function call