check branch tool and print line tool