what is this `f`? I'm unable to infer its purpose.