fix f formula