remove dirty bits. focus on immediate mode