check resource type to be 'gd'