=change the data function's parameters to option