in reply to Problem with function