adding mode replacement instructions