added update functionality and remove some logs