modify error plot