debuggig and ploting changes