added some register updates