refactor to potentially enable shadow flip on 32-bit values