added bounds test and push to Firebase