removing unused codes