avoid duplicated tikz code