removed several gcc warnings