minor modifications to improve error plots