removed code that did nothing and fixed compilation error