correction to newlab3.c