fixing compilations errors