add method g_p for output display