add updtate to functons