switch to stdc99