fixed compilewarnings