added last part of firebase