modify show function