finished rational and linear f