added local updating