output working for xbees