method f