changes to palin_3.c