fixed degraded code