remove old code leftover from before refactoring