genericize instructions