use buffer for updateTBAT in updateData.py