add in error to plotting