modify valid print routine