resolved firebase issue with c variable