fixing compilation erros