removing non compiling code