added gcm function to .functions