accept function in data option