added documentation for show function