removing unused code that is causing errors on live