re-organize directory in c implement