changing flags for copying