removing code that not needed