updated program on line 268