tweaking calling code for GCM