fixed warnings at compile time