improve error plotting