this looks like written C style :-)