working IR transformation