compat for old C