Sliming donw uneeded codes