code set data can be sent to firebase