split utils and plot functions