messing around with c initialization function