added calls to firebase