Rbf inv now working