add bias calculations and plot