small refactoring

remove some code that was no longer required