working with firebase