gcm working version but not integrated