fixed 3n1.c