compiling, logical error