modify mine,flag and number