added missing include and wrong function call