hide importing mpl inside the function
clean code