working on firebase