updating fertch method query