added writeback=True to mutate values