adapt to older compiler