modified firebase code