check valid show before printing