removed unused code

tests pass.