added auto update function