started fixing gcc warnings