removed unused code found by frosted