commented up plotdata(). it needs to be rewritten