fixed warnings during compile