add method to push intermediate code to list.