finish usage of mixsure of C and assembly