updated
add setter for secret attribute