just fixing compilation errors. not tested