removes extra unused code