keep flag when moving