remove guid function