fixed show() to print into IO