working tfdif model