before firebase add