take secret value properly