fixed warnings about inheritance