fix gcm function;; oops!!!!