added PUTVAL printf statement