refactored backout plotting removing unnecessary code