remove unused code

closes #158