removed g++ -Wall warnings