separates instructions based on instruction type.