added IR code