update ordo and switch to c89