fixed my function code block to display output