removed def -> C-like func definitions