initialized the gfinder intead of doctine