updating scalar need to be tested