removing unused and compile-failing code