split pie plot into another module