update and add cstr