method to process full array of instructions