it says variable f have not been initialized