adding auto update feature