removing unused code after inspection