delete old flags
add new flags