help on the following code