revert to funct