fixed a degrade bug
removed a redundant function generation