updating cred