updating secret