change $f variable to constant