fixing the openended function question