add gfi calculation