wrong function call fix