updated show function